/*    */ package com.finir.fakturisanje.forms.tools;
/*    */ 
/*    */ import java.awt.Component;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/*    */ 
/*    */ public class SwingTools
/*    */ {
/*    */   public static void fancyShowComponent(Component c)
/*    */   {
/* 11 */     c.setVisible(true);
/* 12 */     int w = c.getWidth();
/* 13 */     int h = c.getHeight();
/*    */ 
/* 15 */     for (int i = 0; i <= w; i += 10) {
/*    */       try {
/* 17 */         Thread.sleep(1L);
/*    */       }
/*    */       catch (InterruptedException e) {
/* 20 */         e.printStackTrace();
/*    */       }
/* 22 */       c.setSize(i, h);
/*    */     }
/* 24 */     c.setSize(w, h);
/*    */   }
/*    */ 
/*    */   public static void setLookAndFeel()
/*    */   {
/*    */     try
/*    */     {
/* 31 */       UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
/*    */     }
/*    */     catch (ClassNotFoundException e) {
/* 34 */       e.printStackTrace();
/*    */     }
/*    */     catch (InstantiationException e) {
/* 37 */       e.printStackTrace();
/*    */     }
/*    */     catch (IllegalAccessException e) {
/* 40 */       e.printStackTrace();
/*    */     }
/*    */     catch (UnsupportedLookAndFeelException e) {
/* 43 */       e.printStackTrace();
/*    */     }
/*    */   }
/*    */ }

